package com.ruoyi.group.service.impl;

import com.ruoyi.group.Utils.MyUtil;
import com.ruoyi.group.mapper.HelpOrderMapper;
import com.ruoyi.group.domain.RpQuestionType;
import com.ruoyi.group.service.HelpOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @Author:黄志超
 * @Todo:TODO
 * @DateTime:2022/3/14 16:07
 * @Component:蜗牛
 **/
@Service
public class HelpOrderServiceImpl implements HelpOrderService {
    @Autowired
    HelpOrderMapper mapper;
    @Override
    public boolean insert(RpQuestionType rpQuestionType) {
        rpQuestionType.setCreateTime(new Date());
        rpQuestionType.setUpdateTime(new Date());
        int i = mapper.insert(rpQuestionType);
        return i>0;
    }

    @Override
    public List<RpQuestionType> findOrder(RpQuestionType rpQuestionType) {
        return mapper.findOrder(rpQuestionType);
    }


}
